forum

home / developersection / forums / how to get .outerheight of element if visible

How to get .outerHeight of element if visible

Anonymous User 1857 01-Feb-2015

Im woundering if its possible to get .outerHeight() of element only if its is visible

I currently have

var $viewItem = $('.test').find('.item');

 

var viewItemHeight = $viewItem.outerHeight(true);

The problem is $viewItem

Will return two elements at a time, one will be hidden. If is possible to test and only get the height of the visible one ?


Updated on 01-Feb-2015

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By